<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>万信管理后台</title>
    <%@ include file="/commons/meta.jsp"%>
    <link href="${ctx}/resources/admin/css/base.css" rel="stylesheet">
    <link type="text/css" href="${ctx}/resources/artDialog/skins/black.css" rel="stylesheet" />
</head>
<body>
<div id="loading" class="loading" >加载中…</div>
<div id="shade-div" class="shade-div hide"></div>
<%@ include file="/jsps/admin/inc/header.jsp"%>
<%@ include file="/jsps/admin/inc/menu.jsp"%>
<div id="main">
    <div id="content">
    <div class="hd">
        <span>系统监控配置</span>
         <button class="btn blue-btn fr" id="addDX">添 加</button>
    </div>
    <div class="tab-box">
        <ul>
            <li><a href="${ctx}/monitoring/config!list.xhtml">告警级别</a></li>
            <li><a href="${ctx}/monitoring/config1!list.xhtml">告警人员设置</a></li>
            <li><a href="${ctx}/monitoring/config2!list.xhtml">监控范围类型设置</a></li>
            <li class="cur"><a href="${ctx}/monitoring/config3!list.xhtml">监控对象设置</a></li>
        </ul>

    </div>
    <table class="table-list">
        <tr>
          <!--    <th>监控对象编码</th>
            <th>网元编号</th>-->
            <th>网元名称</th>
            <th>ip</th>
            <th>范围编号</th>
            <th>监控范围名称</th>
            <th>监控范围明细</th>
             <th>告警阀值</th>
             <th>告警级别</th>
            <th>操作</th>
        </tr>
     
       <s:iterator value="pager.result" status="i" var="ss">
        <tr>
           <!--   <td>${targetid}</td>
            <td>${netid}</td>-->
            <td>${pname}</td>
            <td>${ip}</td>
            <td>${stype}</td>
            <td>${sname}</td>
            <td>${sdetail}</td>
            <td>${warnthreshold}</td>
            <td>${warnlevel}</td>
            <td>
           <!--  <a href="javascript:;">启动监控</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" >停止监控</a>--> 
            <a href="javascript:qy(<s:property value="id" />,<s:property value="tenable" />);"  id="ss<s:property value="id" />" class="disable"><s:if test="tenable==0">已启动监控</s:if><s:elseif test="tenable==1">已停止监控</s:elseif></a>
            <a href="javascript:;" class="editDX"  title="${id}">修改</a> &nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:;" class="del"  title="${id}">删除</a> 
             </td>
        </tr>
      </s:iterator>
      
        
    </table>
    <s:if test="pager.totalCount > 0">
			<jsp:include page="/jsps/admin/inc/pager.jsp">
				<jsp:param name="pageUrl" value="${ctx}/log/system_log!list.xhtml" />
			</jsp:include>
		</s:if>
		<s:else>
			<div class="pages" align="center">没有找到任何记录!</div>
  </s:else>


</div>
</div>
<%@ include file="/jsps/admin/inc/footer.jsp"%>

<!--添加告警级别-->
<div class="popbox w500" id="saveDX" >
    <div class="popbox-hd">
        <h2>添加监控对象设置</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p><label>监控对象编码：</label><input type="text" class="itext" id="targetid"></p>
        <p><label>网元名称：</label>
         <select id="pid">
        <s:iterator value="terminalList" status="i" var="ss">
        <option value="${netid}_${serverip}_${name}">${name}</option>
        </s:iterator>
        </select>
        </p>
        <p><label>监控范围名称：</label>
         <select id="sid">
        <s:iterator value="mwarnScopeList" status="i" var="ss">
        <option value="${stype}_${sname}">${sname}</option>
        </s:iterator>
        </select>
        </p>
        <p><label>监控范围明细：</label><input type="text" class="itext" id="sdetail"></p>
        <p><label>告警级别：</label>
        <select id="warnlevelId">
        <s:iterator value="mwarnLevelList" status="i" var="ss">
        <option value="${warnlevel}">${warndetail}</option>
        </s:iterator>
        </select>
         </p>
         <p><label> 告警阀值：</label><input type="text" class="itext" id="warnthreshold"></p>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn" id="btnSvae3">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<!--告警级别修改-->
<div class="popbox w500" id="editDX" >
    <div class="popbox-hd">
        <h2>监控对象设置修改</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
         <input type="hidden"   id="sld"/>
    </div>
    <div class="popbox-bd">
      <p><label>监控对象编码：</label><input type="text" class="itext" id="UPtargetid"></p>
        <p><label>网元名称：</label>
         <select id="UPpid">
        <s:iterator value="terminalList" status="i" var="ss">
        <option value="${netid}_${serverip}_${name}" title="${netid}_${serverip}_${name}">${name}</option>
        </s:iterator>
        </select>
        </p>
        <p><label>监控范围名称：</label>
         <select id="UPsid">
        <s:iterator value="mwarnScopeList" status="i" var="ss">
        <option value="${stype}" title="${stype}_${sname}">${sname}</option>
        </s:iterator>
        </select>
        </p>
        <p><label>监控范围明细：</label><input type="text" class="itext" id="UPsdetail"></p>
        <p><label>告警级别：</label>
        <select id="UPwarnlevelId">
        <s:iterator value="mwarnLevelList" status="i" var="ss">
        <option value="${warnlevel}">${warndetail}</option>
        </s:iterator>
        </select>
         </p>
         <p><label> 告警阀值：</label><input type="text" class="itext" id="UPwarnthreshold"></p>
         </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn"  id="btnUpdate3">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<!--告警框-->
<div class="popbox w300" id="warning" >
    <div class="popbox-hd">
        <h2>告警</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
         <input type="hidden"  id="deId"/>
    </div>
    <div class="popbox-ft">
        <a href="javascript:;" class="btn blue-btn" id="btnDelete3">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<div class="popbox w300" id="warning3" >
    <div class="popbox-hd">
        <h2>告警</h2>
        <a href="javascript:;" title="关闭" class="closePopBtn"></a>
    </div>
    <div class="popbox-bd">
        <p class="center"></p>
    </div>
    <div class="popbox-ft">
        <a href="javascript:qyok();" class="btn blue-btn"  id="btnqy">确定</a><a href="javascript:;" class="btn gray-btn cancelBtn">取消</a>
    </div>
</div>

<script src="${ctx}/resources/admin/js/lib/jquery-1.8.0.min.js"></script>
<script src="${ctx}/resources/admin/js/common.js"></script>
<script src="${ctx}/resources/admin/js/lib/jquery-ui.js"></script>
<script src="${ctx}/resources/admin/js/systemMonitoring/monitoringConfiguration.js"></script>
<script type="text/javascript" src="${ctx}/resources/artDialog/jquery.artDialog.js?skin=blue"></script>
<script type="text/javascript">
$(function(){
	common.menuClicked('P28', 'C29');
});
</script>
</body>
</html>